<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
        
        <script type="text/javascript">
        
        function selecttype()
        {
            if (document.getElementById("type").selectedIndex == 0) {
                document.getElementById("group_name_tr").style.display = "table-row";
            } else {
                document.getElementById("group_name_tr").style.display = "none";
            }

        }

        function checkForm() 
        {
          if (window.confirm("Are you sure you want to sumbit this form?")) 
          {
          	return true;
          } 
         	return false;
        }
        </script>
        
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <form action="" method="POST" id="rowForm" onsubmit="return checkForm()">
            <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
            	<tr align="left">
                    <th colspan="2" align="left"><?= $title ?></th>
                </tr>
                <!-- <tr><td><?= translate('SELECT_AREA') ?>:</td><td><?= $arealist ?></td></tr>  -->
                <tr><td><?= translate('SEAL_RESUPPLY_PLATFORM') ?>:</td><td><?= $platformlist ?></td></tr>
                <tr><td><?= translate('SEAL_RESUPPLY_MONEY') ?>:</td><td><input type="text" name="row[money]" id="money" size="10"/><font color='red'><img src="images/!.gif">&nbsp;注：单位为元</font></td></tr></td></tr>
               <!-- <tr><td><?= translate('ROLE_NAME') ?>:</td><td><input type="text" name="row[role_name]" id="rolename" size="20" /></td></tr> -->
                <tr><td><?= translate('SEAL_RESUPPLY_CHANNEL') ?>:</td><td><?= $channellist ?></td></tr>
                <tr><td><?= translate('SEAL_RESUPPLY_ORDERID') ?>:</td><td><input type="text" name="row[orderid]" id="orderid" size="40" /></td></tr>
                <tr><td></td><td><input type="submit" value="<?= translate('SUBMIT') ?>" id="submit"/> <input type="reset" value="<?= translate('RESET') ?>" id="reset"/></td></tr>
            </table>
        </form>
        <script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});
                $("#area_host").formValidator({empty: false, onshow: '<?= translate('PLASE_SELECT') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#money").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: 'num', datatype: 'enum', onerror: '<?= translate('C_ONLY_NUM') ?>'});
                $("#select_platform").formValidator({empty: false, onshow: '<?= translate('PLASE_SELECT') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#select_channel").formValidator({empty: false, onshow: '<?= translate('PLASE_SELECT') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                $("#rolename").formValidator({empty: false, onshow: '<?= translate('PLASE_INPUT_ROLE_NAME') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});   
                $("#orderid").formValidator({empty: false, onshow: '<?= translate('PLASE_WRITE') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});                        
            });
        </script>
    </body>
</html>
